package VN.EDU.IMIC.DEVELOPER.LETRONGKHANH.QLST;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JButton;

import VN.EDU.IMIC.DEVELOPER.LETRONGKHANH.QLST.Entity.UserEntity;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JTextField;

public class Main extends JFrame {
	
	private UserEntity user;
	private JPanel contentPane;
	private JTextField txt1;
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		 SimpleSplashScreen s=new SimpleSplashScreen("E:/splashscreen.png");
		  s.wait(2000);
		  s.showScreen();
		new Login();
	}
	/**
	 * Create the frame.
	 */
	public Main(UserEntity user) {
		setTitle("PHẦN MỀM QUẢN LÝ SIÊU THỊ");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		setVisible(true);
		JLabel lbl1 = new JLabel("null");
		lbl1.setText(user.getUserName());
		lbl1.setBounds(0, 0, 69, 14);
		contentPane.add(lbl1);
		
		
	}
}
